<?php
exit;
set_time_limit(0);
include_once("./c/config.php");
$mysqli = new mysqli($dbhost, $dbuser, $dbpwd, $dbName);
if (!$mysqli->set_charset("utf8")) {printf("Error loading character set utf8: %s\n", $mysqliTwo->error);}
  

$query=$mysqli->query("SELECT openid FROM `ci3` GROUP by openid HAVING COUNT(openid) > 1 ");

$openid=array();
while ($list=$query->fetch_assoc()){
   
    $openid[]=$list['openid'];
}
foreach ($openid as $v){
    echo $v;
    echo "<br /><br /><br />";    
    $query=$mysqli->query("SELECT * FROM `ci3` where openid='".$v."' ");
  
    while ($list=$query->fetch_assoc()){
        var_dump($list);
        echo "<br />";
        echo "<a href='selim4.php?id=".$list['id']."'>".$list['fen']."...".$list['id']."</a>";
        echo "<br /><br /><br />";        
    }
    
    exit;
    
}
